<?php
namespace app\index\model;

use think\Model;
use think\Db;
use think\Session;

class VerCode extends Model
{
	public function getRandOne(){
		$ques = Db::table('vercode')->order('rand()')->find();

		session('answer',$ques['answer']);

		return $ques['ques'];
	}
}

?>